import instance from '../utils/request'

// 抽取api 用户首页/推荐频道

const userHome = () => {
  return instance({
    url: 'v1_0/user/channels',
    method: 'get'
  })
}
// 获取各频道推荐文章+
/* eslint-disable */
const getArticles = ({ channel_id, timestamp }) => {
  return instance({
    url: 'v1_1/articles',
    method: 'get',
    params: {
      channel_id,
      timestamp,
      with_top: 1
    }
  })
}
// 导出
export { userHome, getArticles }
